package org.tissou.client.Services;

import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.core.client.GWT;
import org.tissou.client.Services.MonException;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 17-Mar-2009
 * Time: 22:44:08
 * To change this template use File | Settings | File Templates.
 */
public interface EntrerTransactionService extends RemoteService {
  void EntrerTransaction(Parametres p) throws MonException;

  /**
   * Utility/Convenience class.
   * Use EntrerTransactionService.App.getInstance() to access static instance of EntrerTransactionServiceAsync
   */
  public static class App {
    private static final EntrerTransactionServiceAsync ourInstance;

    static {
      ourInstance = (EntrerTransactionServiceAsync) GWT.create(EntrerTransactionService.class);
      ((ServiceDefTarget) ourInstance).setServiceEntryPoint(GWT.getModuleBaseURL() + "EntrerTransactionService");
    }

    public static EntrerTransactionServiceAsync getInstance() {
      return ourInstance;
    }
  }
}
